use serde::Serialize;

#[derive(Serialize)]
pub struct AuthData {
    pub token: String,
    pub token_type: String,
}

impl AuthData {
    pub fn new(token: &str) -> Self {
        Self {
            token: token.into(),
            token_type: "Bearer".into(),
        }
    }
}
